﻿namespace ufida.u9.ait.openapi
{
	using System;
	using System.Collections.Generic;
	using System.Text;
    using ufida.u9.ait.openapi.utils;
    using UFSoft.UBF.AopFrame;	
	using UFSoft.UBF.Util.Context;

	/// <summary>
	/// HelloSV partial 
	/// </summary>	
	public partial class HelloSV 
	{	
		internal BaseStrategy Select()
		{
			return new HelloSVImpementStrategy();	
		}		
	}
	
	#region  implement strategy	
	/// <summary>
	/// Impement Implement
	/// 
	/// </summary>	
	internal partial class HelloSVImpementStrategy : BaseStrategy
	{
		public HelloSVImpementStrategy() { }

		public override object Do(object obj)
		{						
			HelloSV bpObj = (HelloSV)obj;

			try
			{
                if (bpObj.Data == null || bpObj.Data.Length == 0)
                    throw new Exception("参数为空");
                return ResultUtils.success(bpObj.Data);
            }
			catch(Exception ex)
			{
                return ResultUtils.error(bpObj, bpObj.Data, ex);
            }
		}		
	}

	#endregion
	
	
}